package com.shengde.jinwawaforleader.model.homePage.studentproduciton;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

//文件的类
@SuppressLint("ParcelCreator")
public class FileTraversal implements Parcelable {
	public String filename;//所属图片的文件名称
	public List<String> subList=new ArrayList<String>();

	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(filename);
		dest.writeList(subList);
	}

	public static final Creator<FileTraversal> CREATOR=new Creator<FileTraversal>() {

		@Override
		public FileTraversal[] newArray(int size) {
			return null;
		}

		@SuppressWarnings("unchecked")
		@Override
		public FileTraversal createFromParcel(Parcel source) {
			FileTraversal ft=new FileTraversal();
			ft.filename= source.readString();
			ft.subList= source.readArrayList(FileTraversal.class.getClassLoader());

			return ft;
		}


	};
}
